package com.njust.enums;

/**
 * @author zjwpro@foxmail.com
 * @date 2018/1/10 下午10:54
 */
public enum RespCode {


    SUCCESS(0,"SUCCESS"),
    ERROR(-1,"ERROR");

    private final int code;

    private final String msg;

    RespCode(int code, String msg){
        this.code=code;
        this.msg = msg;
    }

    public int getCode(){
        return code;
    }
    public String getMsg(){
        return msg;
    }
}
